Jiahui Tang
2017/11/14
Make some figures first
The spread of GDP per capita within the continents
Plot mean of life expectancy for different years
Make a plot of GDP for countries' iso_code between 120 and 170
Reorder the continents based on life expectancy. + Use the forcats package to change the order
reordered_data <- read.delim("03_reordered.rds")## Warning in read.table(file = file, header = header, sep = sep, quote =
## quote, : line 2 appears to contain embedded nulls
## Warning in read.table(file = file, header = header, sep = sep, quote =
## quote, : line 3 appears to contain embedded nulls
## Warning in read.table(file = file, header = header, sep = sep, quote =
## quote, : line 4 appears to contain embedded nulls
## Warning in read.table(file = file, header = header, sep = sep, quote =
## quote, : line 5 appears to contain embedded nulls
## Warning in scan(file = file, what = what, sep = sep, quote = quote, dec =
## dec, : EOF within quoted string
## Warning in scan(file = file, what = what, sep = sep, quote = quote, dec =
## dec, : embedded nul(s) found in input
head(reordered_data)## X
## 1 Bangladesh
## 2 Bangladesh
## 3 Bangladesh
## 4 Bangladesh
## 5 Bangladesh
## 6 Bangladesh
Reorder the continents based on life expectancy Plot the two different figures
Create a figure for each continent, and write one file per continent, with an informative name.